package com.dilili;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO
 * @Data: 2020-06-01 23:47
 * @Pacakge: com.dilili
 * @ClassName: HelloWorldController
 * @Version: v1.0.0
 * @Author: dilili
 */
@RestController
public class HelloWorldController {

    @Autowired
    private HelloWorldServiceImpl helloWorldServiceImpl;

    @RequestMapping("/hi")
    public String getHelloWorld(String name) {
        return helloWorldServiceImpl.getHello(name);
    }
}